/*
 * ContinuosMap.h
 *
 *  Created on: 27/06/2011
 *      Author: Rafael
 */

#ifndef CONTINUOSMAP_H_
#define CONTINUOSMAP_H_

#include "Map.h"

#include <string>
using namespace std;;


struct MapInfo{
	int x;
	int y;
	int w;
	int h;
	string name;
	string viewName;
};

class ContinuosMap: public Map {
	map<int, MapInfo> maplist;
	int current;
public:
	ContinuosMap(int current);
	virtual ~ContinuosMap();

	void onMove(GameObject* obj, Point2D *step);

	bool testMap(int id, int x, int y);
	void update(GameObject *obj);
	void addMapList(int id, string name, string viewName, Rect rect);

	void SetNextMap();
};

#endif /* CONTINUOSMAP_H_ */
